<template>
  <div class="department-container">
    <div class="app-container">
      <el-card>
        <!-- 具体页面结构 -->
        工资管理
        <button @click="fn">点击生成</button>
      </el-card>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    fn() {
      this.$router.addRoutes([
        {
          path: '/add',
          component: () => import('@/views/add/add')
        }
      ])
    }
  }
}
</script>
